package com.ymttest.database.mapping.godmch;

import com.ymttest.database.model.godmch.point_change_type_dic;
import com.ymttest.database.model.godmch.point_change_type_dicExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface point_change_type_dicMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @SelectProvider(type=point_change_type_dicSqlProvider.class, method="countByExample")
    int countByExample(point_change_type_dicExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @DeleteProvider(type=point_change_type_dicSqlProvider.class, method="deleteByExample")
    int deleteByExample(point_change_type_dicExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @Delete({
        "delete from point_change_type_dic",
        "where change_type_id = #{change_type_id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer change_type_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @Insert({
        "insert into point_change_type_dic (change_type_id, change_type_title, ",
        "change_type_level, parent_change_type_id)",
        "values (#{change_type_id,jdbcType=INTEGER}, #{change_type_title,jdbcType=VARCHAR}, ",
        "#{change_type_level,jdbcType=INTEGER}, #{parent_change_type_id,jdbcType=INTEGER})"
    })
    int insert(point_change_type_dic record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @InsertProvider(type=point_change_type_dicSqlProvider.class, method="insertSelective")
    int insertSelective(point_change_type_dic record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @SelectProvider(type=point_change_type_dicSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="change_type_id", property="change_type_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="change_type_title", property="change_type_title", jdbcType=JdbcType.VARCHAR),
        @Result(column="change_type_level", property="change_type_level", jdbcType=JdbcType.INTEGER),
        @Result(column="parent_change_type_id", property="parent_change_type_id", jdbcType=JdbcType.INTEGER)
    })
    List<point_change_type_dic> selectByExample(point_change_type_dicExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @Select({
        "select",
        "change_type_id, change_type_title, change_type_level, parent_change_type_id",
        "from point_change_type_dic",
        "where change_type_id = #{change_type_id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="change_type_id", property="change_type_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="change_type_title", property="change_type_title", jdbcType=JdbcType.VARCHAR),
        @Result(column="change_type_level", property="change_type_level", jdbcType=JdbcType.INTEGER),
        @Result(column="parent_change_type_id", property="parent_change_type_id", jdbcType=JdbcType.INTEGER)
    })
    point_change_type_dic selectByPrimaryKey(Integer change_type_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @UpdateProvider(type=point_change_type_dicSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") point_change_type_dic record, @Param("example") point_change_type_dicExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @UpdateProvider(type=point_change_type_dicSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") point_change_type_dic record, @Param("example") point_change_type_dicExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @UpdateProvider(type=point_change_type_dicSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(point_change_type_dic record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table point_change_type_dic
     *
     * @mbggenerated Fri Aug 14 16:12:38 CST 2020
     */
    @Update({
        "update point_change_type_dic",
        "set change_type_title = #{change_type_title,jdbcType=VARCHAR},",
          "change_type_level = #{change_type_level,jdbcType=INTEGER},",
          "parent_change_type_id = #{parent_change_type_id,jdbcType=INTEGER}",
        "where change_type_id = #{change_type_id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(point_change_type_dic record);
}